export const stepAction = {
  // 上一步
  prev: () => {
    if (isLoadingGlobal.value) return
    stepIndex.value--
  },
  // 下一步
  next: () => {
    if (isLoadingGlobal.value) return
    stepIndex.value++
  }
}

export const isLoadingGlobal = ref(false)

export const stepIndex = ref(0)

export const step1Data = {
  name: { label: '请输入您的名字', value: ref('') },
  year: { label: '请选择您的入职时间', value: ref(''), valueName: ref('') },
}

export const step2Data = {
  tabData: shallowRef([]),
  chooseData: shallowRef({})
}

export const resultData = shallowRef({})

export const isWxBrowser = /micromessenger/i.test(navigator.userAgent)
